﻿using Entropy.Ext.Ast;

namespace Entropy.Ext
{
    public static class AsgExtensions
    {
         public static bool IsUnaryNot(this Node expr)
         {
             var unary = expr as Unary;
             return unary != null && unary.Operator == UnaryOperator.Not;
         }
    }
}